package com.example.yyy

import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.google.android.material.snackbar.Snackbar
import kotlinx.android.synthetic.main.activity_coordintor.*
import org.jetbrains.anko.toast

class CoordintorActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_coordintor)
        //snackbar提示条
        btn_cd_snackbar.setOnClickListener{
            Snackbar.make(cl_cd_cl,"这是个提示条",Snackbar.LENGTH_LONG)
                .setAction("点击事件") { toast("Toast") }
                .setDuration(10000).show()
        }
        btn_cd_floating.setOnClickListener {
            float_btn_cd_fb.hide()
        }
    }
}